{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
		<ol class="breadcrumb">
			<li>
				<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
			</li>
			<li><strong>扫码支付记录</strong></li>
		</ol>
	</div>
	<div class="ibox-content">
		<ul class="nav nav-tabs">
			<li id="li-bar-busi">
				<a href="{:url('coderec')}">商家扫码支付记录</a>
			</li>
			<li id="li-bar-member">
				<a href="{:url('memcoderec')}">会员扫码支付记录</a>
			</li>
		</ul>
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('memcoderec')}">
			<div class="row">
				<span class="bspan">会员名称</span><input type="text" name="name" id="name" value="{$name}" placeholder="请输入会员名称" class="bank"> <span>
                <span class="bspan">添加时间</span> <input type="text" id='add_time' name='add_time' value="{$add_time}" onclick='WdatePicker()' placeholder="开始时间" class="bank" />
				<input id='end_time' name='end_time' value="{$end_time}" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />
				<span style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
				<a href="#" onclick="check()" class="btn btn-primary btn-outline">导出信息</a></span>
			</div>
		</form>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<table class="table table-bordered table-hover">
					<thead>
						<tr class="long-tr text-center">
							<th class="text-center">会员名称</th>
							<th class="text-center">支付类型</th>
							<th class="text-center">信息</th>
							<th class="text-center">变化金额</th>
							<th class="text-center">操作时间</th>
						</tr>
					</thead>
					<tbody id="list" class="text-center">
						{volist name="list" id='ad'}
						<tr>
							<td>{$ad.nick_name}</td>
							<td>
								{if $ad.pay_type==2}
								微信
								{elseif $ad.pay_type==3}
								支付宝
								{/if}
							</td>
							<td>{$ad.remark}</td>
							<td>{$ad.price}</td>
							<td>{$ad.add_time}</td>
						</tr>
						{/volist}
					</tbody>
				</table>
				<div style="text-align: right;">
					{$list->render()}
				</div>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
$("#li-bar-member").addClass("active");
	var surl="adminmall/paylog/coderec";
	setMenu(surl);
	function check(){
		var name = $('#name').val();
		var add_time = $('#add_time').val();
		var end_time = $('#end_time').val();
		window.location.href = "/adminmall/paylog/memcodedc.html?name="+ name+"&add_time="+ add_time+"&end_time="+ end_time;
	}
</script>

{/block}